import request from '@/utils/request.js'

import {useTokenStore} from '@/stores/token.js'










export const treeListService = (params)=>{
    return  request.get('/admin/tree/listAll',{params:params})
}

export const treeLevelListService = (params)=>{
    return  request.get('/admin/tree/level/listPage',{params:params})
}


export const treeLevelAddService = (level)=>{
    return request.post('/admin/tree/level/add',level);

}


export const treeLevelEditService = (level)=>{
    return  request.post('/admin/tree/level/edit',level)
}
export const treeLevelDelService = (params)=>{
    return  request.get('/admin/tree/level/del',{params:params})
}
